import * as types from '../types'
const state = {
  tableHeight: (window.document.documentElement.clientHeight),
  userName: '未登录'
}
const mutations = {
  [types.SETTABLEHEIGHT] (state, data) {
    if (state.tableHeight !== data) state.tableHeight = data
  },
  [types.SETUSERNAME] (state, data) {
    state.userName = data
  }
}
export default ({
  state,
  mutations
})
